package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysLabel;
import com.jk.smartelderlycare.dto.sysVideo;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/15 8:46
 * @Version v1.0
 */
public interface SysVideoServiceApi {
    /**
     * @description: 视频后端分页查询
     * @param: [sysVideo, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.sysVideo>
     * @author hhk
     * @date: 2024/11/15 8:49
     */
    @PostMapping(value = "/sysVideo/findSysVideoPaginationList")
    public PagedResponse<sysVideo> findSysVideoPaginationList(@RequestBody sysVideo video, @RequestParam(value = "pageNum") Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);
    /**
     * @description: 新增视频
     * @param: [video]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 8:50
     */
    @PostMapping(value = "/sysVideo/addSysVideo")
    public void addSysVideo(@RequestBody sysVideo video);
    /**
     * @description: 根据id删除信息
     * @param: [videoId]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 8:50
     */
    @DeleteMapping(value = "/sysVideo/deleteSysVideoByVideoId")
    public void deleteSysVideoByVideoId(@RequestParam(value = "videoId") Long videoId);
    /**
     * @description: 根据id回显信息
     * @param: [videoId]
     * @return: com.jk.smartelderlycare.dto.sysVideo
     * @author hhk
     * @date: 2024/11/15 8:51
     */
    @GetMapping(value = "/sysVideo/findSysVideoByVideoId")
    public sysVideo findSysVideoByVideoId(@RequestParam(value = "videoId") Long videoId);
    /**
     * @description: 修改视频
     * @param: [video]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 8:52
     */
    @PutMapping(value = "/sysVideo/updateSysVideo")
    public void updateSysVideo(@RequestBody sysVideo video);
    /**
     * @description: 标签动态下拉列表
     * @param: []
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysLabel>
     * @author hhk
     * @date: 2024/11/15 8:54
     */
    @GetMapping(value = "/sysVideo/findSysLabelList")
    public List<SysLabel> findSysLabelList();
    /**
     * @description: 批量删除
     * @param: [ids]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 11:10
     */
    @DeleteMapping(value = "/sysVideo/deleteSysVideoByIds")
    public void deleteSysVideoByIds(@RequestParam List<Integer> ids);
    /**
     * @description: 导出
     * @param: []
     * @return: void
     * @author hhk
     * @date: 2024/11/15 11:47
     */
    @GetMapping(value = "/sysVideo/findSysVideoList")
    public List<sysVideo> findSysVideoList();


}
